import 'package:arco_flutter/arco_flutter.dart';
import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../controllers/button8_controller.dart';

///长按钮
class Button8View extends GetView<Button8Controller> {
    const Button8View({super.key});
    @override
    Widget build(BuildContext context) {
        return  Scaffold(
            body: Center(
                child: Container(
                    padding: const EdgeInsets.all(20),
                    child: const Column(
                        children: [
                            AButton(
                                type: AButtonType.primary,
                                long: true,
                                child: Text('Primary'),
                            ),
                            SizedBox(height: 10),
                            AButton(
                                type: AButtonType.secondary,
                                long: true,
                                child: Text('Secondary'),
                            ),
                            SizedBox(height: 10),
                            AButton(
                                type: AButtonType.dashed,
                                long: true,
                                child: Text('Dashed'),
                            ),
                            SizedBox(height: 10,),
                            AButton(
                                type: AButtonType.outline,
                                long: true,
                                child: Text('Outline'),
                            ),
                            SizedBox(height: 10,),
                            AButton(
                                type: AButtonType.text,
                                long: true,
                                child: Text('Text'),
                            ),
                        ],
                    ),
                ),
            ),
        );
    }
}
